import { Book, Bookshelf, DocumentFolder } from '@icon-park/vue-next'
import { RouteRecordRaw } from 'vue-router'

export default {
  path: '/book',
  component: ()=> import('@/layout/index.vue'),
  meta: { order: 1, auth: true, menu: { title: '书籍管理', icon: Book } },
  children: [
    {
      path: '/list',
      name: 'List',
      component: () => import('@/views/book/list/index.vue'),
      meta: { menu: { title: '书籍列表', icon: DocumentFolder } }
    },
    {
      path: '/test',
      name: 'Test',
      component: () => import('@/views/book/test/test.vue'),
      meta: { menu: { title: '测试', icon: Bookshelf } }
    },
    {
      path: '/test2',
      name: 'Test2',
      component: () => import('@/views/book/test/test2.vue'),
      meta: { menu: { title: '测试2', icon: Bookshelf } }
    }
  ]
} as RouteRecordRaw
